<%@page import="Tool.tool"%>
<%@page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%
tool jdbc = new tool();
String time = jdbc.gettime();
String name = new String("Snow");
String title = request.getParameter("title");
String content = request.getParameter("content");
title = new String(title.getBytes("ISO-8859-1"), "utf-8");
content = new String(content.getBytes("ISO-8859-1"), "utf-8");


String executeSql = "insert log values('"+name+"','"+title+"','"+content+"','"+time+"')";
int rs = jdbc.Sql().executeUpdate(executeSql);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>发表状态</title>
  </head>
  <h1><%=title %></h1>
  <h1><%=content %></h1>
  <h1><%=time %></h1>
  <body>
  </body>
</html>
